define(['app'],function(app){return {module: function($scope, $http, eventBusService, httpService, params, configService) {
        $scope.form = {};
        $scope.menu_name = "学生管理";





        $scope.save = function() {
            if (!$scope.formCheck()){
                return;
            }

            httpService.post(app.urls.dictionary_insertMajor, $scope.form,function(data){
                if("0000" === data.code){
                    eventBusService.publish("modal.alert", {"content": "添加成功"});
                    eventBusService.publish("content.page.reload", null);
                    eventBusService.publish("modal.page.close",{});
                }else{
                    alert(data.msg);
                }
            });
        }

}}});
